//
//  MaintenceCalendarCell.swift
//  koolcar
//
//  Created by xiantian on 2023/10/24.
//

import UIKit

class MaintenceCalendarCell: UICollectionViewCell {
    var titleLab: UILabel!
    var bkgView: UIView!
    override init(frame: CGRect) {
        super.init(frame: frame)
        bkgView = UIView()
        bkgView.backgroundColor = .white
        self.contentView.addSubview(bkgView)
        
        titleLab = UILabel()
        titleLab.textColor = Theme.titleLabColor
        titleLab.backgroundColor = UIColor.clear
        titleLab.font = UIFont.init(name: Theme.PingFangSCRegular, size: 14)
        titleLab.numberOfLines = 1
        titleLab.lineBreakMode = .byTruncatingTail
        titleLab.textAlignment = .center
        bkgView.addSubview(titleLab)
        
        bkgView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        
        titleLab.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

